AsyncSubject.GetResult() method¶
Defined in
Type: AsyncSubjectSystem.Reactive.Subjects
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public T GetResult()
Summary: Gets the last element of the subject, potentially blocking until the subject completes successfully or exceptionally.
Returns: T -- The last element of the subject. Throws an InvalidOperationException if no element was received.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The source sequence is empty. |